/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package hearts;

/**
 *
 * @author TAI
 */

public class human extends player{

	public card choiMotCard(int index){
		cardDaChoi[index]=true;
		return danhSachCard[index];
	}

        //Trong 1 luot choi
        //ham dung de kiem tra chat trong danh sach Card chua choi
        //co chua chat Card c dau tien duoc dua ra trong 1 luot choi
	public boolean kiemTraChatCardChuaChoi(card c){
		for (int i=1;i<=13;i++){
			if ((cardDaChoi[i]==false)&&(c.kiemTraCungChat(danhSachCard[i])))
				return true;
		}
		return false;
	}

}

